package com.nine.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nine.common.pojo.Role;
import com.nine.system.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: nine-education-parent
 * @author: ♥丁新华
 * @create: 2023-05-25 00:07
 **/
@Mapper
public interface RoleService {
    /**
     * 查找全部
     * @return
     */
    public List<Role> findAll();

    /**
     * 根 据 id 查 询
     * @param userId
     * @return
     */
    public List<Role> findByUserID(String userId);

    /**
     * 确 认
     * @param userId
     * @param roleIds
     * @return
     */
    Integer confirm(String userId, String[] roleIds);

    /**
     * 查找角色
     */
    Page<Role> roleList(Integer current, Integer pageSize, RoleVo roleVo);

}
